#ifndef MIXEREDITTHEMES_H
#define MIXEREDITTHEMES_H

#include <QDialog>
#include <QSqlTableModel>
#include <QRegExpValidator>
#include <QQueue>

namespace Ui {
    class MixerEditThemes;
}

class MixerEditThemes : public QDialog
{
    Q_OBJECT

public:
    explicit MixerEditThemes(QWidget *parent = 0);
    ~MixerEditThemes();

private slots:
    void on_actionNewThemeNamesChanged_triggered();

    void on_pushButton_NewThemeSubmit_clicked();

    void on_pushButton_DeleteThemes_clicked();

    void on_pushButton_ImportFromfile_clicked();

    void on_pushButton_ExportTofile_clicked();

    void on_pushButton_ExportAllTofile_clicked();

private:
    void fetchAllDataFromDB();
    void searchThisRow(int theme=0);
    void exportReallyProcessing(QQueue<int> &);
    Ui::MixerEditThemes *ui;
    QSqlTableModel *tmodel;
    QRegExpValidator *newthemeEngValidator;
    QRegExpValidator *newthemeHunValidator;
};

#endif // MIXEREDITTHEMES_H
